package com.example.demo.common;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 查询SQL对象
 *
 * @author yuanzheng
 * @since 2022-01-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "查询SQL对象", description = "查询SQL对象")
@NoArgsConstructor
@AllArgsConstructor
public class TestSql {

    @ApiModelProperty(name = "sql", value = "SQL")
    @JsonProperty(value = "sql")
    private String sql;

    @ApiModelProperty(name = "type", value = "0:MySQL 1:GreenPlum")
    @JsonProperty(value = "type")
    private Integer type;

}
